<?php
/**
 * Created by PhpStorm.
 * User: s.utkin
 * Date: 12.08.14
 * Time: 18:13
 */

namespace Messenger\Messages\Send;

use Pinenut\Config;

class FormConfig extends Config
{
    static $config = [
        'htmlOptions' => [
            'id' => 'messenger-message-send-form',
            'method' => 'POST',
            'class' => 'custom-submit',
        ],
        'elements' => [
//            'text' => [
//                'type' => 'text',
//                'style'=>'withSmile',
//                'filters' => ['trim','symbol2Unicode','br2nl'],
//                'validators' => [
//                	'notEmpty' => [
//                		'errorMessage' => 'You can not send an empty message'
//                	]
//                ],
//                'label' => 'Message',
//            ],
            'text' => [
                'type' => 'textarea',
                'style' => 'stickers',
                'filters' => ['trim','symbol2Unicode','br2nl'],
                'validators' => [
                	'notEmpty' => [
                		'errorMessage' => 'You can not send an empty message'
                	]
                ],
                'label' => 'Message',
            ],
        ],
    ];
}